﻿<html DIR="LTR" xmlns:tool="http://www.microsoft.com/tooltip" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
  <head>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8" />
    <META NAME="save" CONTENT="history" />
    <title>SQLServerStatement 成员</title>
    
    <link rel="stylesheet" type="text/css" href="../local/Classic.css">
      
    </link>
    
    <script src="../local/script.js">
      
    </script><script src="../local/script_main.js">&amp;nbsp;</script>
  </head>
  <body>
    <!--Topic built:04/01/2010 05:03:28-->

    
    
    
    
    
    
    
    
    
    <div id="header">
      <table width="100%" id="topTable"><tr>
          <td align="left">
            <span id="headerBold">SQLServerStatement 成员</span>
          </td>
          <td align="right">
            
          </td>
        </tr></table>
      
      
      
    </div>
    <div id="mainSection">
      
        
        
    <font color="DarkGray">
      
    </font>
    <p />
    
    <p />
  
        <div id="introductionSection" class="section">
    <p>下表列出了由 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 类公开的成员。</p>
  </div><h1 class="heading">构造函数</h1><div id="sectionSection0" class="section"><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
      <p xmlns="">无。</p>
    </content></div><h1 class="heading">字段</h1><div id="sectionSection1" class="section"><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
      <p xmlns="">无。</p>
    </content></div><h1 class="heading">继承的字段</h1><div id="sectionSection2" class="section"><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
      <table width="100%" cellspacing="0" cellpadding="0" border="1" style="background-color: #CCCCCC;" xmlns=""><tr>
            <th>
              名称
            </th>
            <th>
              说明
            </th>
          </tr><tr>
          <td>
            <p>java.sql.Statement</p>
          </td>
          <td>
            <p>CLOSE_ALL_RESULTS、CLOSE_CURRENT_RESULT、EXECUTE_FAILED、KEEP_CURRENT_RESULT、NO_GENERATED_KEYS、RETURN_GENERATED_KEYS、SUCCESS_NO_INFO</p>
          </td>
        </tr></table>
    </content></div><h1 class="heading">方法</h1><div id="sectionSection3" class="section"><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
      <table width="100%" cellspacing="0" cellpadding="0" border="1" style="background-color: #CCCCCC;" xmlns=""><tr>
            <th>
              名称
            </th>
            <th>
              说明
            </th>
          </tr><tr>
          <td>
            <p>
              <a href="95924a8b-a43c-4133-aff6-1d712e60e234.htm">addBatch</a>
            </p>
          </td>
          <td>
            <p>将给定的 SQL 命令添加至此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象的当前命令列表。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="276bd9c1-9329-4fc9-9622-ed673c83a12d.htm">cancel</a>
            </p>
          </td>
          <td>
            <p>取消当前正由此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象运行的 SQL 语句。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="e6fc1461-bbc6-45ae-85b1-a824aba51085.htm">clearBatch</a>
            </p>
          </td>
          <td>
            <p>为此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象清除当前 SQL 命令列表。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="b1d3a50c-3d05-44b3-b1ba-404a013fd627.htm">clearWarnings</a>
            </p>
          </td>
          <td>
            <p>清除对此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象报告的所有警告。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="84a25d64-dd3e-4696-bb5f-4eaf391fab7e.htm">close</a>
            </p>
          </td>
          <td>
            <p>立即释放此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象的数据库和 JDBC 资源，而非等待它们自动释放。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="e1367f39-23d7-4e26-b160-6d988d7e6988.htm">execute</a>
            </p>
          </td>
          <td>
            <p>运行可返回多个结果的给定的 SQL 语句。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="fb034f63-2532-4da8-a1b0-bc125734585a.htm">executeBatch</a>
            </p>
          </td>
          <td>
            <p>向数据库提交要运行的一批命令。如果所有命令都成功运行，则返回一个更新计数数组。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="599cf463-e19f-4baa-bacb-513cad7c6cd8.htm">executeQuery</a>
            </p>
          </td>
          <td>
            <p>运行给定的 SQL 语句并返回单一的 <a href="eaffcff1-286c-459f-83da-3150778480c9.htm">SQLServerResultSet</a> 对象。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="10ae662a-ce3c-4b24-875c-5c2df319d93b.htm">executeUpdate</a>
            </p>
          </td>
          <td>
            <p>运行给定的 SQL 语句，可以是 INSERT、UPDATE、MERGE 或 DELETE 语句；或不返回任何内容的 SQL 语句，例如 SQL DDL 语句。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="6f341d0b-265a-415e-abe5-8f408fedbb21.htm">getConnection</a>
            </p>
          </td>
          <td>
            <p>检索 <a href="937292a6-1525-423e-a2b2-a18fd34c2893.htm">SQLServerConnection</a> 对象，该对象生成了此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="ceb4ae68-decc-46d3-83f1-0bbd23aaf58c.htm">getFetchDirection</a>
            </p>
          </td>
          <td>
            <p>检索从数据库表中提取行的方向，该方向是由此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象生成的结果集的默认值。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="8115ca58-8ae9-46ce-8515-7905d7bb25fe.htm">getFetchSize</a>
            </p>
          </td>
          <td>
            <p>检索结果集行数，该行数是由此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象生成的结果集对象的默认提取大小。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="a3325950-0e81-4ae8-aa0c-e1f6d371adcd.htm">getGeneratedKeys</a>
            </p>
          </td>
          <td>
            <p>检索因运行此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象而创建的任何自动生成的键。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="ed7bbcb8-660b-4e9b-8241-e216c42826f9.htm">getMaxFieldSize</a>
            </p>
          </td>
          <td>
            <p>检索可为由此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象生成的 <a href="eaffcff1-286c-459f-83da-3150778480c9.htm">SQLServerResultSet</a> 对象中的字符和二进制列值返回的最大字节数。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="6aece4e5-027d-434e-a8cf-a67c0484f189.htm">getMaxRows</a>
            </p>
          </td>
          <td>
            <p>检索由此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象生成的 <a href="eaffcff1-286c-459f-83da-3150778480c9.htm">SQLServerResultSet</a> 对象可包含的最大行数。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="6b18510a-4d6d-4eeb-a9d0-32e920eb0048.htm">getMoreResults</a>
            </p>
          </td>
          <td>
            <p>移动到此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象的下一个结果。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="8dff954f-b458-4fa6-abe6-be62ff75e2b9.htm">getQueryTimeout</a>
            </p>
          </td>
          <td>
            <p>检索 Microsoft SQL Server JDBC Driver 等待此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象运行的秒数。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="a9a9ffdd-7ce3-4e0a-907c-34d6a54e6865.htm">getResponseBuffering</a>
            </p>
          </td>
          <td>
            <p>检索此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象的响应缓冲模式。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="929a14e2-8e98-4c32-89aa-86733c717ec1.htm">getResultSet</a>
            </p>
          </td>
          <td>
            <p>检索当前结果作为 <a href="eaffcff1-286c-459f-83da-3150778480c9.htm">SQLServerResultSet</a> 对象。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="47ef6547-5ec7-4cf5-a4d4-e34cbeec72eb.htm">getResultSetConcurrency</a>
            </p>
          </td>
          <td>
            <p>检索 <a href="eaffcff1-286c-459f-83da-3150778480c9.htm">SQLServerResultSet</a> 对象的结果集并发机制，这些对象由此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象生成。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="053549ee-2018-47ab-9538-789dac2b150a.htm">getResultSetHoldability</a>
            </p>
          </td>
          <td>
            <p>检索 <a href="eaffcff1-286c-459f-83da-3150778480c9.htm">SQLServerResultSet</a> 对象的结果集保持能力，这些对象由此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象生成。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="260da35f-ddf6-4111-8519-69956ea3072e.htm">getResultSetType</a>
            </p>
          </td>
          <td>
            <p>检索 <a href="eaffcff1-286c-459f-83da-3150778480c9.htm">SQLServerResultSet</a> 对象的结果集类型，这些对象由此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象生成。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="e9570228-4500-44b6-b2f1-84ac050b5112.htm">getUpdateCount</a>
            </p>
          </td>
          <td>
            <p>检索当前结果作为更新计数。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="3d6decae-2570-4ca5-8ff6-57a2cc3e921f.htm">getWarnings</a>
            </p>
          </td>
          <td>
            <p>检索调用此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象时报告的第一个警告。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="e79b5b53-16b0-42a3-be4e-542a77a21e12.htm">isClosed</a>
            </p>
          </td>
          <td>
            <p>指示此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象是否已关闭。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="b8a12ac5-57cb-4288-9973-c7d5cebd197c.htm">isPoolable</a>
            </p>
          </td>
          <td>
            <p>返回指示是否可以将语句添加到用户提供的语句池的一个值。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="53f3291f-d43a-476b-a656-d86168dacf6c.htm">isWrapperFor</a>
            </p>
          </td>
          <td>
            <p>指示此语句对象是否为指定接口的包装。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="3f3ec4f2-103a-4e16-9206-c5bd8639f946.htm">setCursorName</a>
            </p>
          </td>
          <td>
            <p>将 SQL 游标名称设置为给定字符串，该字符串将由随后的执行方法使用。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="6ac0682e-e04c-4fdb-893b-92408d42051e.htm">setEscapeProcessing</a>
            </p>
          </td>
          <td>
            <p>设置转义处理模式。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="18176517-2fb3-4266-924d-0f01253083d2.htm">setFetchDirection</a>
            </p>
          </td>
          <td>
            <p>为 JDBC 驱动程序提供提示以指明处理结果集行时应采用的方向。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="760e555e-9667-4b40-b0ba-778026ff2923.htm">setFetchSize</a>
            </p>
          </td>
          <td>
            <p>为 JDBC 驱动程序提供提示以指明在需要更多行时应从数据库中提取的行数。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="38f7fc1d-acad-4d10-9fc8-3c0669d93b07.htm">setMaxFieldSize</a>
            </p>
          </td>
          <td>
            <p>将存储字符或二进制值的 <a href="eaffcff1-286c-459f-83da-3150778480c9.htm">SQLServerResultSet</a> 列中的最大字节数限制设置为给定的字节数。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="cccc0667-589b-4655-8ea8-14ae8b2eb9dc.htm">setMaxRows</a>
            </p>
          </td>
          <td>
            <p>将任何 <a href="eaffcff1-286c-459f-83da-3150778480c9.htm">SQLServerResultSet</a> 对象可包含的最大行数限制设置为给定的数目。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="f0f798c8-cafb-4acc-b85d-2e0059c91d92.htm">setPoolable</a>
            </p>
          </td>
          <td>
            <p>请求语句入池或不入池。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="0c513265-cd0c-4b38-9494-94458c17a16d.htm">setQueryTimeout</a>
            </p>
          </td>
          <td>
            <p>将驱动程序等待 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象运行的秒数设置为给定的秒数。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="9f489835-6cda-4c8c-b139-079639a169cf.htm">setResponseBuffering</a>
            </p>
          </td>
          <td>
            <p>将此 <a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement</a> 对象的响应缓冲模式设置为不区分大小写的<b> String full</b> 或 <b>adaptive</b>。</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="ce680176-ef04-4e44-bb6c-ec50bd06e7e6.htm">unwrap</a>
            </p>
          </td>
          <td>
            <p>返回一个实现指定接口的对象，从而允许访问特定于 Microsoft SQL Server JDBC Driver 的方法。</p>
          </td>
        </tr></table>
    </content></div><h1 class="heading">继承的方法</h1><div id="sectionSection4" class="section"><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
      <table width="100%" cellspacing="0" cellpadding="0" border="1" style="background-color: #CCCCCC;" xmlns=""><tr>
            <th>
              从下面的类继承而来：
            </th>
            <th>
              方法
            </th>
          </tr><tr>
          <td>
            <p>java.lang.Object</p>
          </td>
          <td>
            <p>clone、equals、getClass、hashCode、notify、notifyAll、toString、wait</p>
          </td>
        </tr><tr>
          <td>
            <p>java.sql.Wrapper</p>
          </td>
          <td>
            <p>isWrapperFor、unwrap</p>
          </td>
        </tr></table>
    </content></div><span id="seeAlsoSpan"><h1 class="heading">请参阅</h1></span><div id="seeAlsoSection" class="section" name="collapseableSection"><a href="ec24963c-8b51-4838-91e9-1fbfa2347451.htm">SQLServerStatement 类</a><br /><br /></div><!--[if gte IE 5]>
			<tool:tip element="seeAlsoToolTip" avoidmouse="false"/><tool:tip element="languageFilterToolTip" avoidmouse="false"/><tool:tip element="roleInfoSpan" avoidmouse="false"/>
		<![endif]-->
      <div id="footer" class="section">
        
		<hr />
		
		<span id="fb" class="feedbackcss">
			
			
		</span>
		
		<a href="9bad553b-9e70-4696-8499-2e35f772a1e0.htm">
			
			© 2010 Microsoft Corporation。保留所有权利。
		</a>
 	
	
      </div>
    </div>
  </body>
</html>